import http from '@/utils/request'

export default {

  async getRoleList(param) {
    return await http.get("/api/role/list", param);
  },

  async updateRole(params) {
    return await http.put("/api/role/update", params);
  },
  //添加
  async addRole(params) {
    return await http.post("/api/role/add", params);
  },
  //删除
  async deleteById(params) {
    return await http.delete("/api/role/delete", params);
    }
}